// 对于我个人来说的审批状态
export enum MyStatus {
  MyApply = 4,
  ToApproval = 1, // 待我审批
  Approvaled = 2, // 我已审批
  CopyToMe = 3, // 抄送我的
}
// 与APP端约定好的详情query参数tabId
export enum TabIds {
  MyApply = 'myapply', // 我发起的
  ToApproval = 'toapproval', // 待我审批
  Approvaled = 'approvaled', // 我已审批
  CopyToMe = 'copyme', // 抄送我的
}

// 与APP端约定好的审批操作query参数
export enum ActionsText {
  Agree = 'agree', // 同意
  Reject = 'reject', // 拒绝
}
export enum Actions {
  Agree = '0004',
  Reject = '0007',
}

export enum ProcessActions {
  Recall = '1',
  Resubmit = '2',
}

// // 审批单的状态
export enum ApprovalStatus {
  Disable = 0, //
  Approvaling = 1, // 审批中
  Pass = 2, // 已通过
  Reject = 3, // 已拒绝
  Revert = 4, // 已撤销
}

export const ApprovalColor: IterateAny = {
  [ApprovalStatus.Disable]: 'greyStatus',
  [ApprovalStatus.Approvaling]: 'blueStatus',
  [ApprovalStatus.Pass]: 'greenStatus',
  [ApprovalStatus.Reject]: 'redStatus',
  [ApprovalStatus.Revert]: 'whiteStatus'
};

export enum TaskStatus {
  Approvaling = 0,
  Apply = 1,
  Agree = 2,
  Reject = 3,
  Copy = 4, //已抄送
  Revert = 5, //已撤销
}

export enum ReadStatus {
  Read = 1,
  UnRead = 0,
}
